package com.xyd.auth.security.custom;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

public interface CustomUserDetailService extends UserDetailsService {
    /**
     * 根据用户名获取用户对象
     * @param username 用户名
     * @return 用户对象
     * @throws UsernameNotFoundException 用户名不存在
     */
    UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;

}
